import http from '@/utils/request'

// 获取店铺商品分类
export function getShopGoodsCate(shopId) {
	return http.get("/user/goods/cate/" + shopId)
}

export function getAllGoods(shopId) {
	return http.get('/user/goods/all/' + shopId)
}

// 获取店铺分类下商品
export function getShopGoodsByCateId(cateId) {
	return http.get("/user/goods/cateDetail/" + cateId)
}

// 获取营销商品
export function getHotGoodsByCate(cateId) {
	return http.get('/user/goods/hotcate/' + cateId)
}


// 生成订单
export function crateOrder(param) {
	return http.post("/user/order/create",param)
}

// 有桌子时候生成订单
export function newOrderInTable(param) {
	return http.post('/user/order/newOrderInTable',param)
}